class Student {
    public String name;


    public Student(String name) {
        this.name = name;

    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}


public class Test {

    public static void main(String[] args) throws CloneNotSupportedException {
        Student student1=new Student("bittejiuyeke");
        Student student2=(Student) student1.clone();
        System.out.println(student1.name);
        System.out.println(student2.name);



    }
}